import { defineStore } from "pinia";

export const useUserStore = defineStore('user', {
  state: () => {
    return {
      // 用户信息
      user: {},
    }
  },

  actions: {
    // 设置用户的数据
    setUser(data) {
      this.user = data;
    }
  },
  
  getters: {
  }
  
})